package com.hadwinling.blog.service;

import com.hadwinling.blog.entity.Money;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author HadwinLing
 * @version V1.0
 * @Package com.hadwinling.blog.service
 * @date 2020/8/29 16:18
 */
public interface MoneyService {


    int deleteByPrimaryKey(Integer id);

    int insert(Money record);

    int insertSelective(Money record);

    Money selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Money record);

    int updateByPrimaryKey(Money record);

    List<Money> selectAllByAdminidAndState(Integer adminid, Integer state);

    List<Money> selectTagByAdminidAndState(Integer adminid,Integer state);

    int updateStateByIdAndAdminid(Integer updatedState,Integer id,Integer adminid);

    List<Money> selectMoneyByAdminidAndStateOrderByCreatetimeDesc(Integer adminid,Integer state);

    int sumMoneyByAdminid(Integer adminid);

}





